<template>
    <!-- <el-backtop target=".hc-form .el-scrollbar__wrap" visibility-height="50"></el-backtop> -->
      <el-backtop :target="target">
    <!-- <i class="el-icon-top back-top"></i> -->
     <svg-icon icon-class="返回顶部" />
  </el-backtop>
</template>

<script>
export default {
    data(){
        return {};
    },
    props:{
        // 触发滚动的对象
        target:{
            type: String,
            default: ""
        }  
    }
}
</script>

<style lang="scss" scoped>
.el-backtop{
    background: #b2b2b2a3;
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
    &:hover{
        background: #8a8888;
    }
}
.back-top{
  color: #fff;
}
</style>